package com.xci.platform.auth.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统消息
 */
@Data
public class MessageEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息主键
     */
    @NotBlank(message = "消息主键不能为空")
    @ExcelIgnore
    private String id;
  
    /**
     * 消息标题
     */
    @NotBlank(message = "消息标题不能为空")
    @Excel(name = "消息标题")
    private String title;
  
    /**
     * 消息内容
     */
    @NotBlank(message = "消息内容不能为空")
    @Excel(name = "消息内容")
    private String messageContent;
  
    /**
     * 发送用户主键
     */
    @NotBlank(message = "发送用户主键不能为空")
    @ExcelIgnore
    private String sendUserId;
  
    /**
     * 发送用户姓名
     */
    @Excel(name = "发送用户姓名")
    private String sendUserName;
  
    /**
     * 发送日期
     */
    @Excel(name = "发送日期")
    private Date sendDateTime;
  
    /**
     * 接收用户主键
     */
    @NotBlank(message = "接收用户主键不能为空")
    @ExcelIgnore
    private String receiveUserId;
  
    /**
     * 接收用户姓名
     */
    @Excel(name = "接收用户姓名")
    private String receiveUserName;
  
    /**
     * 读取状态
     */
    @Excel(name = "读取状态")
    private Integer readStatus;
  
    /**
     * 读取日期
     */
    @Excel(name = "读取日期")
    private Date readDatetime;
  
}
